<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@page import="manage.UserManage,object.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@include file="JS/session.jsp" %>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>更改用户信息</title>
<link href="css/foreground.css" rel="stylesheet" type="text/css" />
</head>
 
 <BODY id=css-zen-garden>
<DIV id=container>
<DIV id=intro>
<DIV id=quickSummary>
 <p class=p2>欢迎，<%=session.getAttribute("RealName") %>;<a href="login.jsp">退出</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="EditUser.jsp">修改资料</a>&nbsp;&nbsp;
    <%
     String level= null;
     level=(String)session.getAttribute("UserLevel");
     if(level!=null&&level.equals("0"))
     {
     %> 
      <a href="admin/AddGroup.jsp">进入后台</a>
      <%
       }
       %></p>
</DIV>
<DIV id=edituser>
 <%
     String userid=(String)session.getAttribute("UserID");
     int UserID=Integer.parseInt(userid);
     User user=UserManage.GetUserName(UserID);
     %>
<H3><SPAN>修改资料</SPAN></H3>
  <form id="form1" name="form1" method="post" action="editUser">
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_style">
  <tr bgcolor="#52514E">
    <td colspan="2" align="center">修改资料</td>
    </tr>
   
    <form id="editUser" name="editUser" method="post" action="editUser">
  <tr bgcolor="#52514E">
    <td width="30%">用户名</td>
    <td align="left">  <input name="UserName" type="text" class="selectlist" id="UserName" value="<%= user.getUserName() %>" /> </td>
  </tr>
  <tr bgcolor="#52514E">
    <td width="30%">密码</td>
    <td align="left">
      <input name="pwd"  type="password" class="selectlist" id="pwd" />    </td>
  </tr>
    <tr bgcolor="#52514E">
    <td width="30%">确认密码</td>
    <td align="left">
      <input name="repwd" type="password"  class="selectlist" id="repwd" />    </td>
  </tr>
  <tr bgcolor="#52514E">
    <td width="30%">E-mail</td>
    <td align="left">
      <input name="Email" type="text" class="selectlist" id="Email"  value="<%= user.getEmail() %>" />   </td>
  </tr>
  <tr bgcolor="#52514E">
    <td colspan="2">
        <input type="submit" name="button2" id="button2" value="修改" />    </td>
    </tr>
</table></form>
<br /><br /><br /><br /><br /><br /><br />
</DIV></DIV>
<DIV id=supportingText></DIV>
<DIV id=linkList>
<DIV id=linkList2>
<DIV id=lselect>
<H3 class=select></H3>
<UL>
   <li><a href="QueryBug.jsp?QueryMode=Whole"><span 
  class=accesskey>查看BUG</span></a> </li>
          <li><a href="AddBug.jsp"><span 
  class=accesskey>创建BUG</span></a> </li>
  </UL>
</DIV>
<DIV id=larchives>
<H3 class=archives><SPAN></SPAN></H3>
<UL>
        <LI>
        <form id="form1" name="form1" method="post" action="">
          <select name="select2" class="treelist" id="select2">
            <option selected="selected">维护项目</option>
          </select>
        </form>
      </LI>
</UL></DIV>
<DIV id=lresources>
<H3 class=resources></H3>
<UL>
    <li><a href="QueryBug.jsp?QueryMode=AssignedTo"><span class=accesskey>指派给我的BUG</span></a> </li>
    <li><a href="QueryBug.jsp?QueryMode=Opened"><span class=accesskey>由我创建的BUG</span></a> </li>
  </UL>
</DIV></DIV></DIV></DIV></BODY>
</html>
 